<script src="../lib/crosscom.js" charset="utf-8"></script>
<script>
	crosscom.request({source: window.top, data:0, type:"request"})
	.then(({data, type, response}) => {
		console.log("request", data, type);
		return response(2, "request")
	})	
	.then(({data, type, response}) => {
		console.log("request", data, type);
		return response(4, "request")
	})
	.then(({data, type, response}) => {
		console.log("request", data, type);
		return response(6, "request")
	})
	.catch(({data})=>console.log(data))
</script>
